﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpertAppraisal.aspx.cs"
    Inherits="CJJCH.Web.ExpertAppraisal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>评审专家抽取-申请表</title>
    <link href="../lhgdialog/lhgdialog.css" rel="stylesheet" type="text/css" />
    <script src="../lhgdialog/lhgcore.min.js" type="text/javascript" language="javascript"></script>
    <link href="Style/newcss.css" rel="stylesheet" type="text/css" />
    <script src="JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="lhgdialog/lhgcore.min.js" type="text/javascript" language="javascript"></script>
    <script src="lhgdialog/lhgdialog.js" type="text/javascript" language="javascript"></script>
    <script src="Script/JQcheck.js" type="text/javascript"></script>
    <script src="JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">

        function ShowExpert() {
            var companyName = $("#txtCompanyName").val();
            var companyAddress = $("#txtCompanyAddress").val();
            var postCode = $("#txtPostCode").val();
            var contactName = $("#txtContactName").val();
            var userEmail = $("#txtUserEmail").val();
            var officeTel = $("#txtOfficeTel").val();
            var userMobile = $("#txtUserMobile").val();
            var projectName = $("#txtProjectName").val();
            var projectAddress = $("#txtProjectAddress").val();
            var jdms = $("#txtJDMS").val();
            var dxscs = $("#txtDXSCS").val();
            var rcsl = $("#txtRCSL").val();
            var zcsl = $("#txtZCSL").val();
            var sbsj = $("#txtSBSJ").val();
            var pssj = $("#txtPSSJ").val();
            var hydz = $("#txtHYDZ").val();
            var sgwj1 = $("#fileSCWJONE").val();
            var scwj2 = $("#fileSCWJTWO").val();
            var wjsm = $("#txtNote").val();

            var strURL = "ExpertDetail.aspx?companyName=" + escape(companyName)
                                            + "&companyAddress=" + escape(companyAddress)
                                            + "&postCode=" + escape(postCode)
                                            + "&contactName=" + escape(contactName)
                                            + "&userEmail=" + escape(userEmail)
                                            + "&officeTel=" + escape(officeTel)
                                            + "&userMobile=" + escape(userMobile)
                                            + "&projectName=" + escape(projectName)
                                            + "&projectAddress=" + escape(projectAddress)
                                            + "&jdms=" + escape(jdms)
                                            + "&dxscs=" + escape(dxscs)
                                            + "&rcsl=" + escape(rcsl)
                                            + "&zcsl=" + escape(zcsl)
                                            + "&sbsj=" + escape(sbsj)
                                            + "&pssj=" + escape(pssj)
                                            + "&hydz=" + escape(hydz)
                                            + "&sgwj1=" + escape(sgwj1)
                                            + "&scwj2=" + escape(scwj2)
                                            + "&wjsm=" + escape(wjsm)

            var dlg = new J.ui.dialog({ id: 'd2', title: '预览专家抽取信息', width: 800, height: 600, cover: true, btns: false, rang: true, resize: false, page: strURL });
            dlg.ShowDialog();
        }

        function checkform() {

            if (IsNothing($("#txtCompanyName"), "请输入申报单位！")) {
                return false;
            }
            if (IsNothing($("#txtCompanyAddress"), "请输入详细地址！")) {
                return false;
            }
            if (IsNothing($("#txtPostCode"), "请输入邮编！")) {
                return false;
            } else if (checkpostid($("#txtPostCode"), "请输入正确邮编！")) {
                return false;
            }
            if (IsNothing($("#txtContactName"), "请输入联系人！")) {
                return false;
            }
            if (IsNothing($("#txtUserEmail"), "请输入Email！")) {
                return false;
            }
            else if (checkemail($("#txtUserEmail"), "请输入正确的Email！")) {
                return false;
            }
            if (IsNothing($("#txtOfficeTel"), "请输入固定电话！")) {
                return false;
            }
            if (IsNothing($("#txtUserMobile"), "请输入手机号码！")) {
                return false;
            } else if (checkmobile($("#txtUserMobile"), "请输入正确的手机号码！")) {
                return false;
            }
            if (IsNothing($("#txtProjectName"), "请输入工程名称！")) {
                return false;
            }
            if (IsNothing($("#txtProjectAddress"), "请输入工程地址！")) {
                return false;
            }

            if (IsNothing($("#txtJDMS"), "请输入基低埋深（米）数！")) {
                return false;
            } else if (checknumber($("#txtJDMS"), "请输入正确的基低埋深（米)数！")) {
                return false;
            }

            if (IsNothing($("#txtDXSCS"), "请输入地下水层数！")) {
                return false;
            } else if (checkdigit($("#txtDXSCS"), "请输入正确的地下水层数！")) {
                return false;
            }

            if (IsNothing($("#txtRCSL"), "请输入日抽水量（方）！")) {
                return false;
            } else if (checknumber($("#txtRCSL"), "请输入正确的日抽水量（方）！")) {
                return false;
            }
            if (IsNothing($("#txtZCSL"), "请输入总抽水量！")) {
                return false;
            } else if (checknumber($("#txtZCSL"), "请输入正确的总抽水量！")) {
                return false;
            }
            if (IsNothing($("#txtSBSJ"), "请选择申报时间！")) {
                return false;
            } else if (clearTimeout($("#txtSBSJ"), "请选择正确的申报时间！")) {
                return false;
            }
            if (IsNothing($("#txtPSSJ"), "请选择评审时间！")) {
                return false;
            } else if (clearTimeout($("#txtPSSJ"), "请选择正确的评审时间！")) {
                return false;
            }

            if (IsNothing($("#txtHYDZ"), "请输入会议地址！")) {
                return false;
            }

            //            if (IsNothing($("#fileSCWJONE"), "请上传文件1！")) {
            //                return false;
            //            }

            //            if (IsNothing($("#fileSCWJTWO"), "请上传文件2！")) {
            //                return false;
            //            }
            var time = document.getElementById("txtSBSJ").value; //申报时间          
            var time2 = document.getElementById("txtPSSJ").value; //评审时间
            var date = new Date(time.replace(/-/g, "/"));
            var date2 = new Date(time2.replace(/-/g, "/"));
            date.setDate(date.getDate() + 7); ;
            if (date > date2) {
                alert("评审时间应定于申请日期一周以后");
                return false;
            }
            return true;
        }
        //        var speed = 5//速度数值越大速度越慢
        //        www_qpsh_com2.innerHTML = www_qpsh_com1.innerHTML
        //        function Marquee() {
        //            if (www_qpsh_com2.offsetWidth - www_qpsh_com.scrollLeft <= 0)
        //                www_qpsh_com.scrollLeft -= www_qpsh_com1.offsetWidth
        //            else {
        //                www_qpsh_com.scrollLeft++
        //            }
        //        }
        //        var MyMar = setInterval(Marquee, speed)
        //        www_qpsh_com.onmouseover = function () { clearInterval(MyMar) }
        //        www_qpsh_com.onmouseout = function () { MyMar = setInterval(Marquee, speed) }


        //        function StopMove() {
        //            clearInterval(MyMar)
        //        }

        //        function StartMove() {
        //            MyMar = setInterval(Marquee, speed)
        //        }
    </script>
    <style type="text/css">
        .STYLE2
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div runat="server" id="divHidden" visible="false">
        <asp:Label ID="lblFID" runat="server"></asp:Label>
        <asp:Label ID="lblSID" runat="server"></asp:Label>
        <asp:Label ID="lblTID" runat="server"></asp:Label>
        <asp:Label ID="lblMID" runat="server"></asp:Label>
        <asp:Label ID="lblKeyWord" runat="server"></asp:Label>
        <asp:Label ID="lbltypeName" runat="server"></asp:Label>
    </div>
    <div class="MainContain">
        <uc:Top ID="Top1" runat="server" />
        <div class="SubBody">
            <!--News content-->
            <div class="Newshead">
                您当前位置：<a href="ListPage.aspx?firstid=4">专家评审</a> 〉<a href="ListPage.aspx?firstid=4">施工降水方案评审</a>
                〉<a href="#">评审专家抽取</a> 〉申请表</div>
            <div class="Newscon">
                <h3>
                    施工降水方案评审抽取专家申请表</h3>
                <div class="subc">
                    <div id="sqtab">
                        <label for="user">
                            申报单位:</label>
                        <asp:TextBox ID="txtCompanyName" runat="server" Style="width: 500px;"></asp:TextBox>
                        <br />
                        <label for="adress">
                            详细地址:</label>
                        <asp:TextBox ID="txtCompanyAddress" runat="server" Style="width: 500px;"></asp:TextBox>
                        <br />
                        <label for="zipcode">
                            邮政编码:</label>
                        <asp:TextBox ID="txtPostCode" runat="server" Style="width: 500px;"></asp:TextBox>
                        <br />
                        <label for="name">
                            联系人:</label>
                        <asp:TextBox ID="txtContactName" runat="server" Style="width: 214px;"></asp:TextBox>
                        <label style="margin-left: 20px; width: 50px;" for="email">
                            e-mail:</label>
                        <asp:TextBox ID="txtUserEmail" runat="server" Style="width: 214px;"></asp:TextBox><br />
                        <label for="tel">
                            固定电话:</label>
                        <asp:TextBox ID="txtOfficeTel" runat="server" Style="width: 214px;"></asp:TextBox>
                        <label style="margin-left: 20px; width: 50px;" for="phone">
                            手&nbsp;机:</label>
                        <asp:TextBox ID="txtUserMobile" runat="server" Style="width: 214px;"></asp:TextBox><br />
                        <label for="project">
                            工程名称:</label>
                        <asp:TextBox ID="txtProjectName" runat="server" Style="width: 500px;"></asp:TextBox><br />
                        <label for="proadress">
                            工程地址:</label>
                        <asp:TextBox ID="txtProjectAddress" runat="server" Style="width: 500px;"></asp:TextBox>
                        <br />
                        <label for="deep">
                            工程基</label>
                        <label style="width: 85px;" for="deep">
                            基低埋深（米）</label>
                        <asp:TextBox ID="txtJDMS" runat="server" Style="width: 160px;"> </asp:TextBox>
                        <label style="margin-left: 20px; width: 73px; height: 12px;" for="layer">
                            地下水层数</label>
                        <asp:TextBox ID="txtDXSCS" runat="server" Style="width: 160px;"> </asp:TextBox>
                        <br />
                        <label for="daywater">
                            本信息：</label><label style="width: 85px;" for="daywater">日抽水量（方）</label>
                        <asp:TextBox ID="txtRCSL" runat="server" Style="width: 160px;"> </asp:TextBox>
                        <label style="margin-left: 20px; width: 73px;" for="totle">
                            总抽水量</label>
                        <asp:TextBox ID="txtZCSL" runat="server" Style="width: 160px;"> </asp:TextBox>
                        <br />
                        <label for="sbtime">
                            申报时间:</label>
                        <asp:TextBox runat="server" ID="txtSBSJ" class="InputSearch_x1" onkeydown="return false;"
                            onkeypress="return false;" onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,maxDate:'2050-12-31'});"
                            Width="70px" CssClass="EditInPut"></asp:TextBox>
                        <br />
                        <label for="pstime">
                            评审时间:</label>
                        <asp:TextBox runat="server" ID="txtPSSJ" class="InputSearch_x1" onkeydown="return false;"
                            onkeypress="return false;" onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,maxDate:'2050-12-31'});"
                            Width="70px" CssClass="EditInPut"></asp:TextBox>
                        <br />
                        <label for="hyadress">
                            会议地址:</label>
                        <asp:TextBox ID="txtHYDZ" runat="server" Style="width: 500px;"></asp:TextBox>
                        <br />
                        <label for="file">
                            上传文件1:</label>
                        <asp:FileUpload ID="fileSCWJONE" runat="server" />
                        <br />
                        <label for="file">
                            上传文件2:</label>
                        <asp:FileUpload ID="fileSCWJTWO" runat="server" />
                        <br />
                        <label for="file">
                            文件说明:</label>
                        <asp:TextBox ID="txtNote" runat="server" TextMode="MultiLine" Width="450px" Height="50px"
                            class="InputSearch_x1"></asp:TextBox>
                        <br />
                        <br />
                        填表说明：<br />
                        <br />
                        <p>
                            1、“抽水量”指方案中的计算抽水量；</p>
                        <p>
                            2、 评审时间应定于申请日期一周以后；</p>
                        <p>
                            3、 上传的降水方案电子版内容应完整，单个文件大小限制在 4 Mb以内，如上传有问题可将方案电子版发至<a href="emailto:yt@cjjch.net">email:YT@cjjch.net</a>；</p>
                        <p>
                            4、 申请成功后请将正式方案（签字盖章）一份寄至北京城建科技促进会（地址：北京市宣武区广莲路甲5号北京建设大厦1010室，邮编：100055，电话：63964563）；
                        </p>
                        <p>
                            5、专家抽取结果将于申请成功后3-4日内传真、e-mail或电话方式通知申请联系人；</p>
                        <p>
                            6、评审会当天上请携带签字盖章的正式方案；</p>
                        <p>
                            7、其他事宜，可致电北京城建科技促进会咨询，电话：63964563；</p>
                        <div>
                            <table border="0" cellpadding="0" cellspacing="0" style="margin-top: 16px; margin-left: 10px"
                                width="100%">
                                <tr>
                                    <td align="middle" height="6" valign="top">
                                        <span class="STYLE2">注：</span>
                                    </td>
                                    <td align="left" border="1" bordercolor="#cccccc" colspan="3" valign="top">
                                        <span class="STYLE2">本系统目前为试运行，在5月1日提交申请一日后，请致电63964563，确认提交结果是否成功。</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="width: 500px; margin: 20px 0 30px 80px;">
                            <input type="button" value="预览" id="btnShow" onclick="ShowExpert();" />
                            <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" />
                            <br />
                        </div>
                    </div>
                </div>
            </div>
            <!--BodyRight end-->
        </div>
        <!--Body end-->
    </div>
    <div>
        <uc:Footer ID="Footer1" runat="server" />
    </div>
    </form>
</body>
</html>
